package com.ruoyi.crop.api.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 加工对象 src_process
 * 
 * @author ruoyi
 * @date 2024-07-31
 */
@TableName(value ="src_process")
@Data
public class Sprocess implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 加工id */
    @TableId(type = IdType.AUTO)
    private Integer processId;

    /** 任务名称 */
    @ExcelProperty(value = "任务名称")
    private String quest;

    /** 任务数量 */
    @ExcelProperty(value = "任务数量")
    private Integer questNum;

    /** 材料名称 */
    @ExcelProperty(value = "材料名称")
    private String cropName;

    /** 使用材料数量 */
    @ExcelProperty(value = "使用材料数量")
    private Integer cropNum;

    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date createTime;

    @ExcelProperty(value = "备注")
    private String remark;
    @TableField(exist = false)
    private String[] cropids;
    @TableField(exist = false)
    private Integer ids[];
    @TableField(exist = false)
    private List<String> crops;

}
